// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//axios
import axios from 'axios'
//全局属性配置，在任意组件内可以使用this.$http获取axios对象
//给Vue扩展一个属性 名字叫做 $http   --就是代表axios
Vue.prototype.$http = axios
//elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';//样式文件
Vue.use(ElementUI)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
